package com.zenithmind.library.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;

/**
 * 预约创建DTO
 * 
 * @author ZenithMind
 * @since 2024-06-14
 */
@Data
@Schema(name = "预约创建DTO", description = "创建预约时的数据传输对象")
public class ReservationCreateDTO {

    @NotBlank(message = "用户ID不能为空")
    @Schema(description = "预约用户ID", example = "1", required = true)
    private String userId;

    @NotBlank(message = "图书ID不能为空")
    @Schema(description = "图书ID", example = "1", required = true)
    private String bookId;

    @Schema(description = "图书副本ID（可选）", example = "1")
    private String bookCopyId;

    @Schema(description = "预约到期日期（可选，系统自动计算）", example = "2024-07-21")
    private LocalDate expirationDate;

    @Schema(description = "预约优先级", example = "0")
    private Integer priority;

    @Schema(description = "通知方式 (1-邮件, 2-短信, 3-站内信)", example = "1")
    private Integer notificationMethod;

    @Schema(description = "备注", example = "急需此书")
    private String remarks;

    @Schema(description = "操作员ID", example = "admin")
    private String operatorId;
}
